package com.ms.services.mail;


import com.ms.infrastructure.spring.ParametroProperties;

/**
 * Created by RAZANERO on 31/01/14.
 */
public class MailAuthResolverBDImpl implements MailAuthResolver {
    ParametroProperties parametroProperties;


    public MailAuthBean buildApiAuth() {
        MailAuthBean result = new MailAuthBean();
        result.setHost(parametroProperties.getProperty(MailAuthResolver.SMTP_HOST));
        result.setUser(parametroProperties.getProperty(MailAuthResolver.SMTP_USER));
        result.setPassword(parametroProperties.getProperty(MailAuthResolver.SMTP_PASS));
        result.setFrom(parametroProperties.getProperty(MailAuthResolver.SMTP_FROM));
        return result;
    }

    public void setParametroProperties(ParametroProperties parametroProperties) {
        this.parametroProperties = parametroProperties;
    }
}
